﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace Sunboxsoft.WinForm
{
    public delegate void ModuleLoadingProgress(float progress, string message);

    public interface IModule
    {
        string Name { get; }
        Image Image { get; }

        bool Authenticate();

        Form CreateAuthForm();

        bool Load(ModuleRuntimeContext context,ModuleLoadingProgress progress);

        void Release();
    }
}
